import React, { Component } from 'react'
import Form from './Form'
const ref = React.createRef()
export default class App extends Component {
  render() {
    return (
      <>
        <Form yyy={ref} xxx={123}></Form>
        <button
          onClick={() => {
            const formdata = new FormData(ref.current)
            console.log(formdata.get('username'))
            console.log(formdata.get('password'))
          }}
        >
          提交
        </button>
      </>
    )
  }
}
